package com.mybatis;
import com.mybatis.mapper.PersonMapper;
import com.mybatis.pojo.Person;
import com.mybatis.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

public class TestMybatis {
    public static void main(String[] args) {
        SqlSession sqlSession = MyBatisUtils.getSession();
        PersonMapper personMapper = sqlSession.getMapper(PersonMapper.class);
        Person person = personMapper.findPersonById3(1);
        System.out.println(person);
        sqlSession.close();
    }
}